Repository navigation
🐛 fix(uv): ignore relative store roots - #210
Merged
Merged
Conversation
An empty or relative profile path could make uv discovery search the caller's working directory for an interpreter. Use the profile default for invalid APPDATA and skip any remaining relative state roots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_uv_state_dirs()accepted empty and relativeAPPDATAvalues on Windows. That could make discovery probe a Python candidate from the caller's working directory. InvalidAPPDATAvalues now use the profile default, and discovery ignores relative state roots. This addresses draft advisory ANT-2026-CM0QSLVR.uv store roots
uv stores managed Python versions under its persistent data directory. The old lookup appended
uv/data/pythonoruv/pythontoPath(APPDATA)even when that path was relative._propose_from_uv()then passed candidates to interpreter probing. The Windows lookup now falls back to the profile directory, and the root enumerator drops relative state paths.Behavior changes
Empty or relative
APPDATAvalues use the profile's roaming directory. RelativeHOMEorUSERPROFILEvalues cannot create implicit working-directory stores.UV_PYTHON_INSTALL_DIRretains its existing override behavior.Reported by Antigravity: ANT-2026-CM0QSLVR.